package com.gzhryc.shared_device.common.payment.dao.db;

import com.gzhryc.jdbc.annotaion.Column;
import com.gzhryc.jdbc.annotaion.PrimaryKey;
import com.gzhryc.jdbc.annotaion.Table;
import com.gzhryc.shared_device.common.payment.dao.enums.EAppType;

import java.util.Date;

@Table(name="config_app_config")
public class AppConfig {

    @PrimaryKey
    @Column(name="app_id",notNull = true)
    private String appId;
    
    @PrimaryKey
    @Column(notNull = true,note = "类型")
    private Integer type;

    @Column(name = "serverPhone", note = "服务电话")
    private String serverPhone;

    @Column(name = "update_date", autoUpdateTime = true)
    protected Date updateDate;

    @Column(name = "create_date")
    protected Date createDate;

    public String getAppId() {
        return appId;
    }

    public void setAppId(String appId) {
        this.appId = appId;
    }

    public Integer getType() {
        return type;
    }

    public void setType(Integer type) {
        this.type = type;
    }

    public String getServerPhone() {
        return serverPhone;
    }

    public void setServerPhone(String serverPhone) {
        this.serverPhone = serverPhone;
    }

    public Date getUpdateDate() {
        return updateDate;
    }

    public void setUpdateDate(Date updateDate) {
        this.updateDate = updateDate;
    }

    public Date getCreateDate() {
        return createDate;
    }

    public void setCreateDate(Date createDate) {
        this.createDate = createDate;
    }

    public String getTypeName(){
        return EAppType.note(this.type);
    }
}
